from plugins import CheckPlugin
from lib.memory import BSDMemory

mem = BSDMemory()

class CheckMemory(CheckPlugin):
    topic = 'memory'

    def check(self):
        self.results = [{'active': mem.mem_active,
                        'inactive': mem.mem_inactive,
                        'wired': mem.mem_wire,
                        'cache': mem.mem_cache,
                        'free': mem.mem_free}]

# TODO: SWAP
